package kr.hyunist.androidcomplete01saeildamil;

import kr.hyunist.androidcomplete01saeildamil.ch07.Ch07Activity;
import kr.hyunist.androidcomplete01saeildamil.ch08.Ch08Activity;
import kr.hyunist.androidcomplete01saeildamil.ch09.Ch09Activity;
import kr.hyunist.androidcomplete01saeildamil.ch11.Ch11Activity;
import kr.hyunist.androidcomplete01saeildamil.ch12.Ch12Activity;
import kr.hyunist.androidcomplete01saeildamil.ch13.Ch13Activity;
import kr.hyunist.androidcomplete01saeildamil.ch16.Ch16Activity;
import kr.hyunist.androidcomplete01saeildamil.ch17.Ch17Activity;
import kr.hyunist.androidcomplete01saeildamil.ch18.Ch18Activity;
import kr.hyunist.androidcomplete01saeildamil.ch19.Ch19Activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {
	Intent intent = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void mOnClick(View v) {
		switch (v.getId()) {
		case R.id.ch07title:
			intent = new Intent(MainActivity.this, Ch07Activity.class);
			break;
		case R.id.ch08title:
			intent = new Intent(MainActivity.this, Ch08Activity.class);
			break;
		case R.id.ch09title:
			intent = new Intent(MainActivity.this, Ch09Activity.class);
			break;
		case R.id.ch11title:
			intent = new Intent(MainActivity.this, Ch11Activity.class);
			break;
		case R.id.ch12title:
			intent = new Intent(MainActivity.this, Ch12Activity.class);
			break;
		case R.id.ch13title:
			intent = new Intent(MainActivity.this, Ch13Activity.class);
			break;	
		case R.id.ch16title:
			intent = new Intent(MainActivity.this, Ch16Activity.class);
			break;
		case R.id.ch17title:
			intent = new Intent(MainActivity.this, Ch17Activity.class);
			break;
		case R.id.ch18title:
			intent = new Intent(MainActivity.this, Ch18Activity.class);
			break;
		case R.id.ch19title:
			intent = new Intent(MainActivity.this, Ch19Activity.class);
			break;	
		}

		startActivity(intent);
	}
}
